<template>
<div class="list" @scroll="$emit('nextPage',$event)">
  <div class="item" v-for="(item,index) in datas" :key="index">
    <div class="itmeLeft">
      <div class="title">{{ item.cameraName }}</div>
<!--      <div class="info">监控S1-园区西北角</div>-->
      <div class="time">{{ item.sj }}</div>
    </div>
    <div class="right">
      离线
    </div>
  </div>
</div>
</template>

<script setup>
defineProps({
  datas:{
    type:Array,
    default:[]
  }
})
defineEmits(['nextPage'])

</script>

<style scoped lang="less">
.list{
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow-y: auto;
  gap: 7px;
  .item{
    width: 100%;
    background: linear-gradient(0deg, #2B5454 0%, rgba(71,135,135,0) 100%);
    border-radius: 10px;
    font-size: 14px;
    padding: 6px 11px 6px 22px;
    display: flex;
    justify-content: space-between;
    .itmeLeft{
      display: flex;
      justify-content: space-between;
      flex-direction: column;
    }
    .title{
      color: #DFB16E;
    }
    .info{
      color: #9C9B9B;
    }
    .time{
      font-size: 10px;
      color: #FFFFFF;
    }
    .right{

      background: linear-gradient(to top,#B7FFFF,#00000000);
      width: 50px;
      height: 58px;
      font-weight: 700;
      clip-path: polygon(0 25%,50% 0,100% 25%,100% 75%,50% 100%,0 75%);
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
</style>
